From: Florian Date: Mon, 6 Jul 2015 23:03:47 +0000 (+0200) Subject: Disable browser provided autocomplete function in TitleInputWidget X-Git-Tag: 1.31.0-rc.0~10804^2 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=93bb8197de760f23d232dceb2396171a1a595f8e;p=lhc%2Fweb%2Fwiklou.git Disable browser provided autocomplete function in TitleInputWidget TitleInputWidget provides its own autocomplete suggestions, the browser suggestions (of previously entered search terms) would overlap the own suggestion list. Disable the browser provided autocomplete function with autocomplete="off". Depends on cd64c1ad3de in OOUI. Bug: T105459 Change-Id: I01468395d708d84fbaf73983d95c1461e255c600 --- diff --git a/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js b/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js index df2f1a7dee..ca8c400fcb 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.js @@ -30,7 +30,7 @@ config = config || {}; // Parent constructor - OO.ui.TextInputWidget.call( this, config ); + OO.ui.TextInputWidget.call( this, $.extend( {}, config, { autocomplete: false } ) ); // Mixin constructors OO.ui.mixin.LookupElement.call( this, config );